<?php
$login = $_GET ["login"];
if (isset ( $_POST ['checkbox'] )) {
	$tabCheckbox = $_POST ['checkbox'];
	
	foreach ( $tabCheckbox as $checkbox ) {
		if ($checkbox == "video") {
			header ( 'Location: ../web/client_revoir_cours_cuisine.php?login='.$login );
			exit ();
		}
		if ($checkbox == "long") {
			header ( 'Location: ../web/client_revoir_cours_cuisine.php?login='.$login );
			exit ();
		}
	}
	header ( 'Location: ../web/client_ne_plus_solliciter.php?login='.$login );
}
if (isset ( $_POST ['radio'] )) {
	$radio = $_POST ['radio'];
	if ($radio == "video") {
		header ( 'Location: ../web/client_revoir_cours_cuisine.php?login='.$login );
	}elseif ($radio == "ustensiles") {
		header ( 'Location: ../web/client_proposition_produits.php?login='.$login );
	}elseif ($radio == "ok"){
		header ( 'Location: ../web/client_ne_plus_solliciter.php?login='.$login );
	}elseif ($radio == "long"){
		header ( 'Location: ../web/client_ne_plus_solliciter.php?login='.$login );
	}
}
?>